//
//  SendGroupMessageViewController.m
//  CoachsBook
//
//  Created by MaBookPro on 2022/8/20.
//

#import "SendGroupMessageViewController.h"
#import "SendGroupMessageHeadView.h"
#import "SendGroupMessagebottomView.h"

@interface SendGroupMessageViewController ()
{
    SendGroupMessageHeadView *_SendGroupMessageHeadView;
    
    SendGroupMessagebottomView *_SendGroupMessageBottomView;
}
@end

@implementation SendGroupMessageViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    self.view.backgroundColor = [UIColor whiteColor];
    //隐藏头部view
    self.navigationController.navigationBar.hidden = YES;
    NavigationHeadView *navgationheadv = [[NavigationHeadView alloc]initWithFrame:CGRectMake(0, 0, APPwidth, SafeAreaTopHight)];
    navgationheadv.titlelabel.text = @"群发短信";
    navgationheadv.titlelabel.textColor = [UIColor blackColor];
    navgationheadv.titlelabel.textColor  = [UIColor blackColor];
    [navgationheadv.backbtn addTarget:self action:@selector(returnback) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:navgationheadv];
    
    _SendGroupMessageHeadView = [[SendGroupMessageHeadView alloc]initWithFrame:CGRectMake(0, SafeAreaTopHight, APPwidth, 300)];
    [self.view addSubview:_SendGroupMessageHeadView];
    
    _SendGroupMessageBottomView = [[SendGroupMessagebottomView alloc]initWithFrame:CGRectMake(0, _SendGroupMessageHeadView.height+_SendGroupMessageHeadView.y, APPwidth, 300)];
    [self.view addSubview:_SendGroupMessageBottomView];
    
}

















-(void)returnback{
    
    [self.navigationController popViewControllerAnimated:YES];
}

#pragma mark -视图即将出现
-(void)viewWillAppear:(BOOL)animated{
        
    ((TabbarController *)self.tabBarController).tabBarView.hidden = YES;
    
}


@end
